package com.hnevc.chenqi;

import java.util.HashMap;
import java.util.Map;


public class Example01 {
    public static void main(String[] args) {
    Map<String,String> map =new HashMap();
    map.put("name","白珏");
    map.put("studentID","202064845445");
    map.put("sex","女");
    map.put("age","19");//储存键和值
    System.out.println(map.get("name"));//根据获取值
//    for(Object val:map){
//
//    }
        map.forEach((key,value)->{
            System.out.println(key+"->"+value);
        });
    }
}
